<!doctype html>
<html lang="zh-CN">
<head>
     <include file="include/head" title="订单列表" />
</head>

<body style="background:#f2f2f2;">
	<div class="header-blank"></div>
    <div class="header">
		订单列表
		<span class="left">
			<a href="{:U('Index/ucenter')}"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span></a>
		</span>
	</div>
	
	<div class="orderlist-tab-blank"></div>
	<div class="orderlist-tab">
		<ul>
			<li <if condition="$_GET['before'] eq ''">class="active"</if>><a href="{:U('Index/order_list')}">近一个月的订单</a></li>
			<li <if condition="$_GET['before'] neq ''">class="active"</if>><a href="{:U('Index/order_list?before=1')}">一个月前的订单</a></li>
		</ul>
	</div>
	<div class="orderlist-main">
		<volist name="list" id="vo">
		<div class="orderlist-item">
			<div class="no">{$vo.sn}</div>
			<div class="money">
				<span class="detail"><a href="{:U('Index/order_detail?id='.$vo['id'])}">查看详情</a></span>
				<span class="gray">金额:</span>￥{$vo.total}
			</div>
			<div class="time"><span class="gray">时间:</span>{$vo.create_time|date="Y-m-d H:i:s", ###}</div>
			<div class="product">
				<volist name="vo['products']" id="v">
				<img src="{$v.pic}" />
				</volist>
				<span class="right"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></span>
			</div>
			<div class="status">
				订单状态：<span class="red">{:get_order_status($vo['status'])}</span>
				<if condition="$vo['status'] eq 3"><a href="{:U('order_confirm?id='.$vo['id'])}" class="btn">确认收货</a></if>
				<if condition="$vo['status'] eq 1"><a href="{:U('Index/order_pay?id='.$vo['id'])}" class="btn">去支付</a></if>
				<!--<if condition="$vo['status'] lt 3 and $vo['status'] gt 0">
					<a href="{:U('Index/order_cancle?id='.$vo['id'])}" class="btn" onclick="return confirm('取消订单已支付的费用将原路返回，确定取消吗？');">取消</a>
				</if>-->
			</div>
		</div>
		</volist>
	</div>
	
	<include file="include/bottom" />

</body>
</html>